package com.han.count;

/**
 * @author: zh
 * @date: 2021/11/30 11:40
 * @version: 1.0
 */
public class Zh0202UserCount {
    private static Zh0202UserCount instance=null;
    private Integer count;

    private Zh0202UserCount() {
    }

    public static Zh0202UserCount getInstance(){
        if(instance==null){
            instance=new Zh0202UserCount();
            instance.setCount(1);
        }else {
            instance.setCount(instance.getCount()+1);
        }
        return instance;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
